package com.future.lock.me.entity.bean;

import android.text.TextUtils;

import com.future.lock.common.Constants;
import com.future.lock.common.MyApp;

import org.json.JSONObject;

/**
 * Created by jniu on 2017/11/27.
 */

public class LoginBean {

    /*
        "user_token":"81aa05d3a2a9a0b6fd42a6f6672a664f",
        "nick_name":null,
        "head_imgurl":null,
        "phone":"18516515573",
        "create_time":"2017-11-27 11:06:01",
        "status":"0"
     */

    public String user_token;
    public String nick_name;
    public String head_imgurl;
    public String phone;
    public String create_time;
    public String status;

    public void parse(JSONObject object){
        user_token = object.optString("user_token");
        nick_name = object.optString("nick_name");
        if (TextUtils.equals("null",nick_name)) {
            nick_name = "";
        }
        head_imgurl = object.optString("head_imgurl");
        phone = object.optString("phone");
        create_time = object.optString("create_time");
        status = object.optString("status");
    }
}
